package cn.school.attendance.classes.entity;

import cn.school.common.utils.SysUserUtils;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class ClassesAttendanceDo {
    //学生id
    private Long studentId;
    //学生姓名
    private String studentName;
    //学生类型
    private String studentType;
    //学生状态
    private String status;
    //学生图片地址
    private String studentPicture;
    //考勤时间
    private String attendanceDate;
    //考勤状态
    private String attendanceStatus;
    //到校时间
    @JsonFormat(pattern = "yyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date arrivalDate;
    //离校时间
    @JsonFormat(pattern = "yyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date departureDate;
    //老师是否更新
    private String teacherUpdate;
    //学生是否归寝
    private String dormitoryStatus;
    //住宿学生考勤时间
    @TableField(exist = false)
    private String dormitoryStuAttendanceTime;

    @TableField(exist = false)
    private String levelName;

    private Date createTime;

    private Date modifyTime;

    private String createBy;

    private String modifyBy;

    private String tenantId = SysUserUtils.getSysUser().getTenantId();
}
